package com.butuh.uang.tuh.ang.model;

import cn.droidlover.xdroidmvp.net.IModel;

public class BaseResult implements IModel {

    String code;

    String msg;

    @Override
    public boolean isNull() {
        return false;
    }

    @Override
    public boolean isAuthError() {
        return !"0".equals(code);
    }

    @Override
    public boolean isBizError() {
        return !"0".equals(code);
    }

    @Override
    public String getErrorMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
